import request from '@/utils/request'

// 查询注册信息列表
export function listRegister(query) {
  return request({
    url: '/system/register/list',
    method: 'get',
    params: query
  })
}

// 查询注册信息详细
export function getRegister(id) {
  return request({
    url: '/system/register/' + id,
    method: 'get'
  })
}

// 新增注册信息
export function addRegister(data) {
  return request({
    url: '/system/register',
    method: 'post',
    data: data
  })
}

// 修改注册信息
export function checkRegister(data) {
  return request({
    url: '/system/register/check',
    method: 'post',
    data: data
  })
}

// 审核注册信息
export function updateRegister(data) {
  return request({
    url: '/system/register',
    method: 'put',
    data: data
  })
}

// 删除注册信息
export function delRegister(id) {
  return request({
    url: '/system/register/' + id,
    method: 'delete'
  })
}


// 获取注册类型列表
export function getRegisterOption(id) {
  return request({
    url: '/system/registerClass/listOption',
    method: 'get'
  })
}

// 获取注册类型列表
export function getRegisterOptionForEdit(id) {
  return request({
    url: '/system/registerClass/listForEdit',
    method: 'get'
  })
}
